import Vue from 'vue'
import App from './App.vue'
import router from "./router";
import store from './store/index'
import toast from 'components/common/toast'

import FastClick from 'fastclick'
import VueLazyLoad from 'vue-lazyload'
Vue.config.productionTip = false

//通过new一个vue实例 让$bus 能发送和接收数据
Vue.prototype.$bus = new Vue()
//安装tpast插件
Vue.use(toast)

//使用图片懒加载
Vue.use(VueLazyLoad)

//使用快速点击  解决移动端300ms延迟
FastClick.attach(document.body);

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
